import javax.vecmath.Color3f;

import object.HorizontalQuad;
import object.Sphere;
import ray.CameraRay;
import util.Point3D;

public class TestQuadIntersect {

	public static void main(String[] args) {
		HorizontalQuad floor = new HorizontalQuad("Floor", new Color3f(0.0f,
				0.0f, 1.0f), new Point3D(-3.0f, -0.7f, 1.0f), 4.0f, 11.0f);
		CameraRay r = new CameraRay(new Point3D(0.0f, -1.0f, 0.0f),
				new Point3D(0.0f, 2.0f, 0.0f), null);

		Sphere sphere = new Sphere("Sphere", new Point3D(0.0f, 0.0f, 0.0f),
				1.0f, new Color3f(0.0f, 0.0f, 1.0f), false, false);
		r = new CameraRay(new Point3D(1.0f, 0.0f, 0.0f),
				new Point3D(2.0f, 0.0f, 0.0f), null);
		System.err.println(sphere.getClosestIntersectionPoint(r));
	}

}
